import request from '@/utils/request'

export const listfollow = (search) => 
    request({
        url: '/follow',
        method: 'get',
        params: {
            pageNum: search.pageNum,
            pageSize:search.pageSize,
            queryString:search.queryString
        }
    }) 

export const removefollow = (id) => 
    request({
        url: '/follow/' + id,
        method: 'delete'
    })

export const updatefollow = (id, follow) =>
    request({
        url: '/follow/' + id,
        method: 'put',
        data: follow
    })

export const savefollow = (follow) => 
    request({
        url: '/follow',
        method: 'post',
        data: follow
    })
    export const findBynumber = (number) => 
    request({
        url: '/follow/'+number,
        method: 'Get',
    })